﻿using System;
using System.Collections.Generic;
using DispatchAssist.BusinessLogical.DAL;
using DispatchAssist.BusinessLogical.Model;

namespace DispatchAssist.BusinessLogical.BLL
{
    public class SeatUserManager
    {
        private static IDataProvider _provider;
        static log4net.ILog Logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public SeatUserManager(IDataProvider dp)
        {
            _provider = new SqlDataProvider();
        }

        public static bool CreateSeatUser(SeatUser seatUser)
        {
            return _provider.CreateSeatUser(seatUser);
        }

        public static bool UpdateSeatUser(SeatUser seatUser)
        {
            return _provider.UpdateSeatUser(seatUser);
        }
        public static bool DeleteSeatUser(Guid userID)
        {
            return _provider.DeleteSeatUser(userID);
        }

        public static List<SeatUser> GetAllSeatUser()
        {
            return _provider.GetAllSeatUser();
        }

       
    }
}
